package com.dao;

import com.bean.Article;

import java.util.List;

/**
 * @author 徐洲
 * @version 1.0
 */
public interface ArticleDAO {
    List<Article> getArticleByName(String keyword);
    Article getArticleById(String article_id);
    List<Article> getArticleByMy(String username);
    List<Article> getArticleByCollection(Object userid);
    boolean collectArticle(Object userid, String article_id);
    boolean noCollectArticle(Object userid, String article_id);
    boolean addArticle(String article_title, Object user_id, Object category_id, String article_cover, String content);
    boolean editArticle(Object article_id, String article_title, Object user_id, Object category_id, String article_cover, String content);
    boolean deleteAllArticle(String[] article_ids);
}
